package com.yunyang.jczd.facade.fileexport.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 导出记录表
 * </p>
 *
 * @author author
 * @since 2020-11-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("jczd_export_record")
@ApiModel(value="JczdExportRecord对象", description="导出记录表")
public class JczdExportRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "导出人姓名")
    private String exporterName;

    @ApiModelProperty(value = "导出人id")
    private Long exporterId;

    @ApiModelProperty(value = "导出文件名")
    private String fileName;

    @ApiModelProperty(value = "文件类型,1-excel，2-pdf，3-csv ")
    private Integer fileType;

    @ApiModelProperty(value = "导出类型")
    private Integer exportType;

    @ApiModelProperty(value = "导出状态，1-正在导出文件，2-导出成功")
    private Integer exportState;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH：mm：ss")
    @ApiModelProperty(value = "导出时间")
    private LocalDateTime exportTime;

    @ApiModelProperty(value = "导出路径")
    private String exportPath;

}
